<@page.html title="我的申请">
<script type="text/javascript" src="${_appPath!}/js/cal.js"></script>
<script>
  var _workflowId = null;
  function pay(id) {
    _workflowId = id;
    openWin("pay?id="+id, 500, 400);
  }
  function payOk(vv) {
    postJson("_pay","id="+_workflowId+"&payls="+encodeURIComponent(vv), payRet);
  }
  function payRet(data) {
    window.alert(data.msg);
    if(data.ret) {
      reloadlist();
    }
  }
</script>
  <div class="search">
    <form id="fm_query" action="_list">
      <dl>
        <dt>门店</dt>
        <dd><script>shopsel('shopCode');</script></dd>
        <dt>类型</dt>
        <dd><select name="typeId"><option value="">全部</option><#if workflowType??><#list workflowType as t><option value="${t.id}">${t.id}-${t.name}</option></#list></#if></select></dd>
        <dt>状态</dt>
        <dd><select name="status"><option value="">全部</option><#if workflowStatus??><#list workflowStatus as t><option value="${t.id}">${t.name}</option></#list></#if></select></dd>
        <dt>合同号/用户名</dt>
        <dd><input type="text" name="name" value="" /></dd>
      </dl>
      <dl>
        <dt>申请编号</dt>
        <dd><input type="text" name="workflowId" value="" size="12" /></dd>
        <dt>时间类型</dt>
        <dd><select name="dateType">
          <option value="1">提交时间</option>
          <option value="2">初审时间</option>
          <option value="3">终审时间</option>
        </select></dd>
        <dt>时间范围</dt>
        <dd><input type="text" class="date" name="dateFrom" value="" onfocus="cal(this);" />
          ~ <input type="text" class="date" name="dateTo" value="" onfocus="cal(this);" /></dd>
        <dd class="button"><input type="button" value="查询" onclick="query();"></dd>
        <#if canExpt??><dd class="button"><input type="button" value="导出" onclick="expt();"></dd></#if>
        <dd class="oper"><#if canAdd??><a class="add" href="javascript:open('add');">新申请</a></#if></dd>
      </dl>
    </form>
  </div>
  <div id="div_list"></div>
<script type="text/javascript">query();</script>
</@page.html>